********************************************************************************
* appendix figure 4: net low income migration near new buildings

********************************************************************************


use net_mig_summary_file,clear

local type vpoor 
	
binscatter an_`type'_gross_migrants_net an_`type'_close_migrants_net an_`type'_building_migrants_net move_year  ///
	, line(connect) ///
	legend(label(1 "Total within 250m") label(2 "Non-building within 250m") ///7
	label(3 "Building migrants"))  ///
	xscale(range(2011 2017) ) xtick(2011(1)2017)  xlabel(2011(2)2017) ///
	xline(2014.5, lwidth(20) lc(gs15)) ///	
	ytitle("Net Migration") xtitle("Year") ///
	colors(black blue red) ///
	msymbols(X Sh Th) 
	